package com.example.back.service;

import com.example.back.model.Product;

import java.util.List;

public interface ProductService {
    //查询所有商品
    List<Product> findAllProduct();
    List<Product> findProductByType(String type);
    List<Product> selectGName(String name);
    Boolean insertProduct(String name, double price, String unit, String type);
    Boolean updateProduct(int id, double price);
    Boolean deleteProduct(int id);
    String findPhotoByID(int id);
}
